package com.woniuxy.dao;

import com.woniuxy.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentDao {

    List<Comment> findComments(Comment comment);

    int createComments(Comment comment);

    Comment findParentByCommentId(int commentid);

    //评论数量变化
    int commentNumChange(@Param("commentid") int commentid,@Param("num") int num);

    int updateLike(@Param("commentid") int commentid,@Param("isLiked") int isLiked);
    // int insertParentUserId(@Param("commentid") int commentid, @Param("parentuserid") int parentUserId);
}
